package chapter_03_factory.p3_abstractFactory.product.factory;

import chapter_03_factory.p3_abstractFactory.product.cpu.Cpu;
import chapter_03_factory.p3_abstractFactory.product.cpu.IntelCpu;
import chapter_03_factory.p3_abstractFactory.product.mainboard.IntelMainboard;
import chapter_03_factory.p3_abstractFactory.product.mainboard.Mainboard;

/**
 * Created by CharloYao on 2017/3/23.
 * Intel产品族工厂
 */
public class IntelFactory implements AbstractFactory {

    @Override
    public Cpu createCpu() {
        return new IntelCpu(755);
    }

    @Override
    public Mainboard createMainboard() {
        return new IntelMainboard(755);
    }
}
